<extend name="Public/baseConf" />
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-6">
	        <h2><present name="data">回收站({:count($list)})</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li class="active">
	                <strong>回收站</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-6">
            <div class="title-action">
				<span class="block pull-right">
					<button class="btn btn-danger ajax-get" url="{:U('article/clear')}">
						<i class="fa fa-trash align-top"></i>清 空
					</button>
					<button class="btn btn-primary btn-primary ajax-post" url="{:U('article/permit')}" target-form="ids">
						<i class="fa fa-flag"></i>还 原
					</button> 
				</span>
            </div>
        </div>
	</div>
</block>
<block name="body">
   	<div class="row">
           <div class="col-lg-12">
           <div class="ibox float-e-margins">
               <div class="ibox-title">
                   <h5>待审核列表</h5>
                   <div class="ibox-tools">
                       <a class="collapse-link">
                           <i class="fa fa-chevron-up"></i>
                       </a>
                   </div>
               </div>
               <div class="ibox-content">
                   <div class="table-responsive">
                  <table class="table table-striped table-bordered table-hover dataTables-example" >
	                  <thead>
	                  <tr>
						<th class="row-selected row-selected">
						<label><input type="checkbox" class="check-all" /><span class="lbl"></span></label></th>
						<th class="center">编号</th>
						<th class="center">标题</th>
						<th class="center">创建者</th>
						<th class="center">类型</th>
						<th class="center">分类</th>
						<th class="center">删除时间</th>
						<th class="center">操作</th>
	                  </tr>
	                  </thead>
	                  <tbody>
							<volist name="list" id="vo">
							<tr>
					            <td class="center"><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
								<td class="center">{$vo.id} </td>
								<td class="center">{$vo.title}</td>
								<td class="center">{$vo.username} </td>
								<td class="center"><span>{:get_document_type($vo['type'])}</span></td>
								<td class="center"><span>{:get_cate($vo['category_id'])}</span></td>
								<td class="center"><span>{$vo.update_time|time_format}</span></td>
								<td class="center"><a href="{:U('article/permit?ids='.$vo['id'])}" class="ajax-get">还原</a></td>
							</tr>
							</volist>
	                  </tbody>
                  </table>
	            <div class="page pull-right">
			     	{$_page}
		 		</div>
                   </div>
               </div>
           </div>
       </div>
   </div>
</block>
